package com.example.payorder.service.impl;

import com.alipay.api.AlipayApiException;
import com.example.payorder.entity.AlipayBean;
import com.example.payorder.service.PayService;
import com.example.payorder.util.AlipayUtil;
import org.springframework.stereotype.Service;

@Service
public class PayServiceImpl implements PayService {

    /**
     * 支付宝
     * @param alipayBean
     * @return
     * @throws AlipayApiException
     */
    @Override
    public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
        return AlipayUtil.connect(alipayBean);
    }
}
